<!DOCTYPE html>
<html ng-app="student_manage" ng-controller="studentListController">


<!-- Mirrored from www.zi-han.net/theme/hplus/table_bootstrap.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:20:03 GMT -->
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>H+ 后台主题UI框架 - Bootstrap Table</title>
    <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
    <meta name="description" content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">

    <link rel="shortcut icon" href="favicon.ico"> <link href="css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
    <link href="css/animate.min.css" rel="stylesheet">
    <link href="css/style.min862f.css?v=4.1.0" rel="stylesheet">
    <link href="myjs/css/angular.cloak.css" rel="stylesheet">
    <link href="css/plugins/toastr/toastr.min.css" rel="stylesheet">

</head>

<body class="gray-bg"  ng-cloak>
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox float-e-margins">
        <div class="ibox-content">
            <div class="row row-lg">
                <div class="col-sm-12">
                    <form class="form-horizontal" _lpchecked="1" name="addForm" ng-submit="add()" >
                        <div class="form-group" ng-class="{true:'has-error',false:''}[addForm.realname.$dirty&&addForm.realname.$invalid]">
                            <label class="col-sm-3 control-label">真实姓名：</label>

                            <div class="col-sm-8">
                                <input type="text" placeholder="真实姓名" class="form-control" name="realname" ng-pattern="/^[\u4e00-\u9fa5]{1,5}$/" ng-model="user.realname">
                                <span  ng-show="addForm.realname.$dirty && addForm.realname.$invalid" class="help-block m-b-none">
                                    <i class="fa fa-times-circle"></i> 请输入汉字(1-5)
                                </span>
                            </div>
                        </div>
                        <div class="form-group" ng-class="{true:'has-error',false:''}[addForm.code.$dirty && addForm.code.$invalid]">
                            <label class="col-sm-3 control-label">学号：</label>

                            <div class="col-sm-8">
                                <input type="text" placeholder="学号" class="form-control" name="code" ng-pattern="/^\d{4}$/" ng-model="user.code">
                                <span  ng-show="addForm.code.$dirty && addForm.code.$invalid" class="help-block m-b-none">
                                    <i class="fa fa-times-circle"></i> 请输入4位数字
                                </span>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-3 col-sm-8">
                                <button class="btn btn-sm btn-white" type="submit" ng-disabled="addForm.$pristine||addForm.$invalid">增加学生</button>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="col-sm-12">
                    <table class="table">
                        <thead>
                        <tr>
                            <th>学号</th>
                            <th>真实姓名</th>
                            <th>性别</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr ng-repeat="student in students">
                            <td>{{student.code}}</td>
                            <td>{{student.realname}}</td>
                            <td>{{student.sex}}</td>
                            <td>
                                <div class="btn-group">
                                    <button data-toggle="dropdown" class="btn btn-info btn-sm dropdown-toggle" aria-expanded="false">操作 <span class="caret"></span>
                                    </button>
                                    <ul class="dropdown-menu">
                                        <li><a href="javascript:;" ng-click="deleteStudent(student)">删除</a>
                                        </li>
                                    </ul>
                                </div>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <!-- End Panel Basic -->
</div>
<script src="js/jquery.min.js?v=2.1.4"></script>
<script src="js/bootstrap.min.js?v=3.3.6"></script>
<script src="js/content.min.js?v=1.0.0"></script>
<script src="js/plugins/toastr/toastr.min.js"></script>
<script src="js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
<script src="js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
<script src="js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>

<script src="myjs/lib/angular/angular.js"></script>
<script src="myjs/lib/angular/angular-route.js"></script>

<script src="myjs/studentListController.js"></script>
<script src="myjs/app.js"></script>
</body>


</html>
